"""QipaoProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import view
from .actions import loginAction, labelAction, classifyAction
from .actions import crawlerAction

urlpatterns = [
    url('loginPage' ,view.to_login_page),
    url('classifyPage', view.to_classify_page),
    url('labelPage', view.to_label_page),
    url('crawlerPage', view.to_crawler_page),
    url('algorithmPage', view.to_algorithm_page),
    
    url('login.do', loginAction.login),
    url('logout.do', loginAction.logout),
    url('label.do', labelAction.label),
    url('classify.do', classifyAction.doclassify),
    url('upload.do', classifyAction.upload),
    url('build_svm.do', classifyAction.build_SVM),
    url('build_knn.do', classifyAction.build_KNN),
    url('build_rf.do', classifyAction.build_RF),
    url('crawler.do', crawlerAction.docrawler),
    url('showfeat.do', classifyAction.show_feat_img)
]
